<!DOCTYPE html>
<html lang=zh-CN>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta property="og:description" content="伍一的笔记，Kool&#39;s Blog">
    <meta property="og:type" content="website">
    <meta name="description" content="伍一的笔记，Kool&#39;s Blog">
    <meta name="keyword"  content="伍一,伍一的博客">
    <link rel="shortcut icon" href="/img/favicon.ico">

    <title>UDI解析</title>

    <!-- Custom CSS -->
    
<link rel="stylesheet" href="/css/aircloud.css">

    
<link rel="stylesheet" href="/css/gitment.css">

    <!--<link rel="stylesheet" href="https://imsun.github.io/gitment/style/default.css">-->
    <link href="//at.alicdn.com/t/font_620856_28hi1hpxx24.css" rel="stylesheet" type="text/css">
    <!-- ga & ba script hoook -->
    <script></script>


<!-- CSS -->
<link href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/4.6.2/css/bootstrap.min.css" rel="stylesheet" >
  
  
  
    <script type="text/javascript">
      var _hmt = _hmt || []
      ;(function () {
        var hm = document.createElement('script')
        hm.src = 'https://hm.baidu.com/hm.js?7e771422dc6f742629fa26747480f822'
        var s = document.getElementsByTagName('script')[0]
        s.parentNode.insertBefore(hm, s)
      })()
    </script>
  



<meta name="generator" content="Hexo 6.3.0"></head>

<body>

<div class="site-nav-toggle" id="site-nav-toggle">
    <button>
        <span class="btn-bar"></span>
        <span class="btn-bar"></span>
        <span class="btn-bar"></span>
    </button>
</div>

<div class="index-about">
    <i> 爱生活爱编码 </i>
</div>

<div class="index-container">
    
    <div class="index-left">
        
<div class="nav" id="nav">
    <div class="avatar-name">
        <div class="avatar radius">
            <img src="/img/zkool.png" />
        </div>
        <div class="name">
            <i>伍一</i>
        </div>
    </div>
    <div class="contents" id="nav-content">
        <ul>
            <li >
                <a href="/">
                    <i class="iconfont icon-shouye1"></i>
                    <span>主页</span>
                </a>
            </li>
            <li >
                <a href="/html/udi/index.html">
                    <i class="iconfont icon-sousuo1"></i>
                    <span>UDI</span>
                </a>
            </li>
            <li >
                <a href="/tags">
                    <i class="iconfont icon-biaoqian1"></i>
                    <span>标签</span>
                </a>
            </li>
            <li >
                <a href="/archives">
                    <i class="iconfont icon-guidang2"></i>
                    <span>存档</span>
                </a>
            </li>
            <li >
                <a href="/collect/">
                    <i class="iconfont icon-shoucang1"></i>
                    <span>收藏</span>
                </a>
            </li>
            <li >
                <a href="/about/">
                    <i class="iconfont icon-guanyu2"></i>
                    <span>关于</span>
                </a>
            </li>
            
            <li>
                <a id="search">
                    <i class="iconfont icon-sousuo1"></i>
                    <span>搜索</span>
                </a>
            </li>
            
        </ul>
    </div>
    
        <div id="toc" class="toc-article">
    
</div>
    
</div>


<div class="search-field" id="search-field">
    <div class="search-bg" id="search-bg"></div>
    <div class="search-container">
        <div class="search-input">
            <span id="esc-search"> <i class="icon-fanhui iconfont"></i></span>
            <input id="search-input"/>
            <span id="begin-search">搜索</span>
        </div>
        <div class="search-result-container" id="search-result-container">

        </div>
    </div>
</div>

        <div class="index-about-mobile">
            <i> 爱生活爱编码 </i>
        </div>
    </div>
    
    <div class="index-middle">
        <!-- Main Content -->
        


<div class="post-container">
    <div class="post-title">
        UDI解析
    </div>

    <div class="post-meta">
        <span class="attr">发布于：<span>2023-12-23</span></span>
        <span class="attr">访问：<span id="busuanzi_value_page_pv"></span>
    </div>

    <div class="post-content ">
        
       

        <div class="alert alert-success" role="alert">
        可解析UDI中的DI和PI，解析PI中的批号、效期、生产日期和序列号等等。UDI条码示例如下<br/>
        GS1规则：069748463000961725123110PH23231223
        <br/>
        MA 规则：MA.156.M0.100607.0PHUFEF7.M220530.L220530.E250529.C8 
        </div>

        <div>
            <div class="form-row align-items-center">
                <div class="col-sm-2 my-1">

                </div>
                <div class="col-sm-7 my-1">
                    <label class="sr-only" for="udi">请输入UDI</label>
                    <input type="text" class="form-control " id="udi" placeholder="请扫描或输入UDI">
                </div>

                <div class="col-auto my-1">
                    <button type="button" class="btn btn-primary text-left" id="search_button">解析UDI</button>
                    <button type="button" class="btn btn-danger text-left" id="clear_button">清空</button>
                </div>
            </div>
        </div>
              
        <div style="margin-top: 30px;">
            <div class="form-group row">
                <label for="di" class="col-sm-2 col-form-label text-right">DI</label>
                <div class="col-sm-4">
                    <input type="text" readonly class="form-control" id="di" >
                </div>
                <label for="pi" class="col-sm-2 col-form-label text-right">PI</label>
                <div class="col-sm-4">
                    <input type="text" readonly class="form-control" id="pi" >
                </div>
            </div>
            <div class="form-group row">
                <label for="batch_no" class="col-sm-2 col-form-label text-right">批号</label>
                <div class="col-sm-4">
                    <input type="text" readonly class="form-control" id="batch_no" >
                </div>
                <label for="expire_date" class="col-sm-2 col-form-label text-right">效期</label>
                <div class="col-sm-4">
                    <input type="text" readonly class="form-control" id="expire_date" >
                </div>
            </div>
            <div class="form-group row">
                <label for="sn" class="col-sm-2 col-form-label text-right">序列号</label>
                <div class="col-sm-4">
                    <input type="text" readonly class="form-control" id="sn">
                </div>
                <label for="prd_date" class="col-sm-2 col-form-label text-right">生产日期</label>
                <div class="col-sm-4">
                    <input type="text" readonly class="form-control" id="prd_date">
                </div>
            </div>

            <div class="form-group row">
                <label for="product_name" class="col-sm-2 col-form-label text-right">产品名称</label>
                <div class="col-sm-4">
                    <input type="text" readonly class="form-control" id="product_name">
                </div>
                <label for="spec_model" class="col-sm-2 col-form-label text-right">规格型号</label>
                <div class="col-sm-4">
                    <input type="text" readonly class="form-control" id="spec_model">
                </div>
            </div>

            <div class="form-group row">
                <label for="reg_no" class="col-sm-2 col-form-label text-right">注册证号</label>
                <div class="col-sm-10">
                    <input type="text" readonly class="form-control" id="reg_no">
                </div>
            </div>

            <div class="form-group row">
                <label for="org_name" class="col-sm-2 col-form-label text-right">备案企业</label>
                <div class="col-sm-4">
                    <input type="text" readonly class="form-control" id="org_name">
                </div>
                <label for="org_code" class="col-sm-2 col-form-label text-right">企业统一信用代码</label>
                <div class="col-sm-4">
                    <input type="text" readonly class="form-control" id="org_code">
                </div>
            </div>

            <div class="form-group row">
                <label for="yibao_code" class="col-sm-2 col-form-label text-right">医保编码</label>
                <div class="col-sm-4">
                    <input type="text" readonly class="form-control" id="yibao_code">
                </div>
                <label for="cate_code" class="col-sm-2 col-form-label text-right">分类编码</label>
                <div class="col-sm-4">
                    <input type="text" readonly class="form-control" id="cate_code">
                </div>
            </div>

            <div class="form-group row">
                <label for="description" class="col-sm-2 col-form-label text-right">产品描述</label>
                <div class="col-sm-10">
                    <textarea readonly class="form-control" id="description"></textarea>
                </div>
            </div>

            <div class="form-group row">
                <label for="min_sale_di" class="col-sm-2 col-form-label text-right">最小销售单元产品标识</label>
                <div class="col-sm-4">
                    <input type="text" readonly class="form-control" id="min_sale_di">
                </div>
                <label for="code_system" class="col-sm-2 col-form-label text-right">产品标识编码体系名称</label>
                <div class="col-sm-4">
                    <input type="text" readonly class="form-control" id="code_system">
                </div>
            </div>

            <div class="form-group row">
                <label for="use_di" class="col-sm-2 col-form-label text-right">使用单元产品标识</label>
                <div class="col-sm-4">
                    <input type="text" readonly class="form-control" id="use_di">
                </div>
                <label for="native_di" class="col-sm-2 col-form-label text-right">本体产品标识</label>
                <div class="col-sm-4">
                    <input type="text" readonly class="form-control" id="native_di">
                </div>
            </div>

            <div class="form-group row">
                <label for="publish_date" class="col-sm-2 col-form-label text-right">产品标识发布日期</label>
                <div class="col-sm-4">
                    <input type="text" readonly class="form-control" id="publish_date">
                </div>
                <label for="version_date" class="col-sm-2 col-form-label text-right">版本的发布日期</label>
                <div class="col-sm-4">
                    <input type="text" readonly class="form-control" id="version_date">
                </div>
            </div>

            <div class="alert alert-primary" role="alert">
                包装标识信息
            </div>
            <table class="table table-bordered">
                <thead>
                  <tr>
                    <th scope="col">包装产品标识</th>
                    <th scope="col">产品包装级别</th>
                    <th scope="col">包含小一级的包装数量</th>
                    <th scope="col">包含小一级包装产品标识</th>
                    <th scope="col">包含的最小包装的数量</th>
                  </tr>
                </thead>
                <tbody id="packageTable">
                  
                </tbody>
            </table>

            <div class="alert alert-info" role="alert">
                存储或操作信息
            </div>
            <table class="table table-bordered">
                <thead>
                  <tr>
                    <th scope="col">#</th>
                    <th scope="col">First</th>
                    <th scope="col">Last</th>
                    <th scope="col">Handle</th>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <th scope="row">1</th>
                    <td>Mark</td>
                    <td>Otto</td>
                    <td>@mdo</td>
                  </tr>
                </tbody>
            </table>

            <div class="alert alert-dark" role="alert">
                临床尺寸信息
            </div>
            <table class="table table-bordered">
                <thead>
                  <tr>
                    <th scope="col">#</th>
                    <th scope="col">First</th>
                    <th scope="col">Last</th>
                    <th scope="col">Handle</th>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <th scope="row">1</th>
                    <td>Mark</td>
                    <td>Otto</td>
                    <td>@mdo</td>
                  </tr>
                </tbody>
            </table>

            <div class="alert alert-secondary" role="alert">
                企业联系信息
            </div>
            <table class="table table-bordered">
                <thead>
                  <tr>
                    <th scope="col">#</th>
                    <th scope="col">First</th>
                    <th scope="col">Last</th>
                    <th scope="col">Handle</th>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <th scope="row">1</th>
                    <td>Mark</td>
                    <td>Otto</td>
                    <td>@mdo</td>
                  </tr>
                </tbody>
            </table>

        </div>



        <div class="alert alert-light" role="alert">
           
        </div>
        

        <div class="donate-container">
            <div class="donate-button">
                <button id="donate-button">赞赏</button>
            </div>
            <div class="donate-img-container hide" id="donate-img-container">
                <img id="donate-img" src="" data-src="/img/my_wechat.jpg">
                <p> 感谢鼓励 </p>
            </div>
        </div>
            
            <br />
            <div id="comment-container">
            </div>
            <div id="disqus_thread"></div>
            <div id="lv-container"></div>
            <div class="giscus"></div>
    </div>
</div>

    </div>
</div>


<footer class="footer">
    <ul class="list-inline text-center">
        
        

        
        <li>
            <a target="_blank" href="http://weibo.com/zha0ku1">
                            <span class="fa-stack fa-lg">
                                  <i class="iconfont icon-weibo"></i>
                            </span>
            </a>
        </li>
        

        

        
        <li>
            <a target="_blank"  href="https://github.com/zkool">
                            <span class="fa-stack fa-lg">
                                <i class="iconfont icon-github"></i>
                            </span>
            </a>
        </li>
        

        

    </ul>
    
    <p>
        <span>/</span>
        
        <span><a target="_blank" rel="noopener" href="https://niexiaotao.com">Xiaotao&#39;s Page</a></span>
        <span>/</span>
        
        <span><a href="#">It helps SEO</a></span>
        <span>/</span>
        
    </p>
    
    <p>
        <span id="busuanzi_container_site_pv">
            <span id="busuanzi_value_site_pv"></span>PV
        </span>
        <span id="busuanzi_container_site_uv">
            <span id="busuanzi_value_site_uv"></span>UV
        </span>
        Created By <a target="_blank" rel="noopener" href="https://hexo.io/">Hexo</a>  Theme <a target="_blank" rel="noopener" href="https://github.com/aircloud/hexo-theme-aircloud">AirCloud</a></p>
</footer>




</body>

<script>
    // We expose some of the variables needed by the front end
    window.hexo_search_path = "search.json"
    window.hexo_root = "/"
    window.isPost = true
</script>

<script src="/js/index.js"></script>
<!-- jQuery and JavaScript Bundle with Popper -->
<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.js"></script>
<script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/4.6.2/js/bootstrap.bundle.min.js"></script>
<script src="udi.decode.js"></script>




</html>
